const createView = (data) => {
    let markup = `

<form action="" class="form-horizontal modal-form" id="form" role="form">
    <div class="form-group">
        <label for="rolename" class="col-sm-2 control-label">角色:</label>
        <div class="col-sm-9">
            <input type="text" id="rolename" name="rolename"  class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label for="" class="col-sm-2 control-label">权限:</label>
        <div class="col-sm-9">
          <ul  id="authlist">
            ${data}
          </ul>
        </div>
    </div>
    <div class="form-group">
        <div class="btn-box">
          <input type="button" class="btn btn-primary" id="submitBtn"  value="提交">
        </div>
    </div>
</form>
    `;

    return markup;

}

export {
    createView
}